<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <!-- <div class="active">123</div> -->

    <script>

        // element
        const el = document.createElement('div');
        el.innerText = 123;

        // append追加 child子元素
        document.body.appendChild(el);

    </script>

</body>
</html>